package com.pty.demo.behaviour.observer;

import java.math.BigDecimal;
import java.util.Observable;

/**
 * @author pengty
 * @date 2020/3/14
 */
public class PorkConcreteSubject extends Observable {

    private BigDecimal porkPrice;

    public void changePrice(BigDecimal porkPrice) {
        this.porkPrice = porkPrice;
        super.setChanged();
        super.notifyObservers(porkPrice);
    }

}
